package com.pilipili.zeus.eduService;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 修改组件扫描规则,导入其他Module下的配置
 * 加入DiscoveryClient注解进行nacos注册
 * 加入FeignClients注解：指定从哪个服务中调用
 * @author Unlimited_Blade_Works
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ComponentScan(basePackages = {"com.pilipili.*"})
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
